package 第一题;

public class HomeWork1  extends Thread{
    public HomeWork1(String name){
        super(name);
    }

    public static void main(String[] args) {
        HomeWork1 thread1 = new HomeWork1("线程1");
        HomeWork1 thread2 = new HomeWork1("线程2");
        System.out.println("线程名："+thread1.getName());
        System.out.println("线程名："+thread2.getName());
    }
}
